<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="style.css">
    <title>哆啦A梦</title>
</head>

<body>
    <style id="demo2"></style>
    <div id="demo"></div>
    <div id="buttons">

        <button class="audio"><audio src="../assets/dlam.mp3" autoplay controls="controls" loop></audio></button>
        <button id="btnPause">暂停</button>
        <button id="btnPlay">播放</button>
        <button id="btnSlow">慢速</button>
        <button id="btnNormal">中速</button>
        <button id="btnFast">快速</button>
    </div>
    <style>
        *
        *::before,
        *::after {
            box-sizing: border-box;
        }
        body {
            background-color: #92c9ff;
            padding: 10px;
            min-height: 100vh;
            top: 20px;
        }
        audio{
            width: 100px;
            height: 28px;
        }
        .audio{
            overflow: hidden;
            padding: 0 !important;
        }
        #buttons {
            position: fixed;
            right: 15px;
            top: 20px;
            z-index: 10;
            display: flex;
            flex-direction: column;
        }

        #buttons>button {
            margin-bottom: 10px;
            padding: 4px 8px;
            width: 53px;
            height: 28px;
            background: #47a3fc;
            border: none;
            color: #fff;
            border-radius: 18px;
        }

        #demo2 {
            display: none;
        }

        #demo {
            position: fixed;
            height: 50vh;
            top: 2%;
            left: 1%;
            transform: translateX(2%);
            width: 94%;
            background: #fff;
            overflow-y: auto;
        }

        #demo::-webkit-scrollbar {
            display: none;
        }

        #html {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50vh;
        }
    </style>
    <div id="html">
        <div class="face1">
            <div class="face2">
                <div class="eye left"></div>
                <div class="eye right"></div>
                <div class="nose">
                    <div class="shadow"></div>
                </div>
                <div class="whisker top left"></div>
                <div class="whisker top right"></div>
                <div class="whisker mid left"></div>
                <div class="whisker mid right"></div>
                <div class="whisker bottom left"></div>
                <div class="whisker bottom right"></div>
                <div class="mouth1"></div>
                <div class="mouth2"></div>
            </div>
        </div>
        <div class="collar">
            <div class="bell1">
                <div class="bell2"></div>
                <div class="bell3"></div>
            </div>
        </div>
        <script type="module" src="main.js"></script>
    </div>
</body>

</html>